home *** CD-ROM | disk | FTP | other *** search
/ Micromanía: 150 Juegos 2010 / 150Juegos_16.iso / Shareware / Shape Smash / shape-smash.swf / scripts / _errorTipStyle.as < prev    next >
Encoding:
Text File  |  2010-05-14  |  1.2 KB  |  44 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.styles.CSSStyleDeclaration;
  5.    import mx.styles.StyleManager;
  6.    
  7.    public class _errorTipStyle
  8.    {
  9.       public function _errorTipStyle()
  10.       {
  11.          super();
  12.       }
  13.       
  14.       public static function init(param1:IFlexModuleFactory) : void
  15.       {
  16.          var style:CSSStyleDeclaration = null;
  17.          var fbs:IFlexModuleFactory = param1;
  18.          style = StyleManager.getStyleDeclaration(".errorTip");
  19.          if(!style)
  20.          {
  21.             style = new CSSStyleDeclaration();
  22.             StyleManager.setStyleDeclaration(".errorTip",style,false);
  23.          }
  24.          if(style.defaultFactory == null)
  25.          {
  26.             style.defaultFactory = function():void
  27.             {
  28.                this.fontWeight = "bold";
  29.                this.borderStyle = "errorTipRight";
  30.                this.paddingTop = 4;
  31.                this.borderColor = 13510953;
  32.                this.color = 16777215;
  33.                this.fontSize = 9;
  34.                this.shadowColor = 0;
  35.                this.paddingLeft = 4;
  36.                this.paddingBottom = 4;
  37.                this.paddingRight = 4;
  38.             };
  39.          }
  40.       }
  41.    }
  42. }
  43.  
  44.